package com.gagakuai.demo.registrytest;

/*
 * @program: settement
 * @description:
 * @author: houhong
 * @create: 2022-11-12 11:43
 */

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@ServiceTyp("3")
@Component
public class Service3 extends AbstractService {

    /*
     * 这里是使用AutowiredAnonationBeanPostProcessor 处理的
     *  所以在BeandefitionPostFactoryProcessoer 处理会报错
     *
     */
    @Autowired
    private Service4 service4;

    @Override
    public void sayHelloHandler() {

        System.out.println("Service3");
        service4.sayHelloHandler();
    }
}